package com.ax.center.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author zy
 * @date 2023/7/5 14:56
 */

@Data
@Accessors(chain = true)
@TableName(value = "user_auth")
@ApiModel(value = "用户权限实体类->一条记录对应用户的其中权限")
public class UserAuth implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "权限id")
    private Long authorityId;
}
